package org.grapes.wine.api.server.model.dao;

import org.grapes.wine.api.server.model.DAOName;
import org.grapes.wine.api.server.model.IDAO;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;

@Indexed
public class AdjoinedLandscapeDAO implements IDAO {
	@DocumentId
	private String id;
	private int version;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private String adjoinedLandscapeName;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private int price;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private String location;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private int distance;
	@Field(index = Index.TOKENIZED, store = Store.NO)
	private int time;

	public AdjoinedLandscapeDAO() {
		// TODO Auto-generated constructor stub
	}

	public String getAdjoinedLandscapeName() {
		return adjoinedLandscapeName;
	}

	public void setAdjoinedLandscapeName(String adjoinedLandscapeName) {
		this.adjoinedLandscapeName = adjoinedLandscapeName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public int getDistance() {
		return distance;
	}

	public void setDistance(int distance) {
		this.distance = distance;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	
	public DAOName getDAOName() {
		return DAOName.AdjoinedLandscape;
	}

	
	public String[] paramName() {
		return new String[] { "adjoinedLandscapeName", "price", "location",
				"distance", "time" };
	}
}
